package com.jinxin.platform.cdsmsmgr.service;

import com.jinxin.platform.base.common.pojo.JsonResult;
import com.jinxin.platform.cdsmsmgr.pojo.domains.SmsTemplateInfo;
import com.jinxin.platform.cdsmsmgr.pojo.entity.ResultEntity;
import com.jinxin.platform.cdsmsmgr.pojo.vo.TemplateVo;

import java.util.HashMap;
import java.util.List;

/**
 * All rights Reserved, Designed By www.beonelot.com
 *
 * @version: V1.0
 * @Copyright: www.beonelot.com Inc. All rights reserved.
 * @Description：
 * @Date: 2020-06-29
 * @Author: Lingnan
 **/
public interface ISmsTemplateService {

    List<SmsTemplateInfo> listPage(HashMap param);

    int listPageCount(HashMap param);

    ResultEntity saveOrUpdate(SmsTemplateInfo templateInfo);

    ResultEntity deleteById(String id);

    ResultEntity appSmsTemplate(SmsTemplateInfo templateInfo);

    ResultEntity updateStatus();

    ResultEntity deleteByCode(String code, String id);

    SmsTemplateInfo getById(String id);

    JsonResult querySmsTemplateList();

    JsonResult freshStatus(String id);

    JsonResult syncSmsTemp(List<TemplateVo> templateInfoList);
}
